package com.sanshow.charging.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity(
        nameInDb = "fb_charging"
)
public class Charging {

    @Id(autoincrement = true)
    @Property(nameInDb = "id")
    private Long id;

    // 仓门号
    @Property(nameInDb = "item_code")
    private String itemCode;

    // 电池编号
    @Property(nameInDb = "info_code")
    private String infoCode;

    // 1、电池；2、浮板
    @Property(nameInDb = "item_flag")
    private int itemFlag;

    // 开门状态:00=关门,01=开门
    @Property(nameInDb = "open_status")
    private String doorStatus;

    // 电池有无:0无,1有
    @Property(nameInDb = "battery_status")
    private int batteryStatus;

    // 电压
    @Property(nameInDb = "dian_ya")
    private int dianYa;

    // 电量
    @Property(nameInDb = "dian_liang")
    private int dianLiang;

    // 电流
    @Property(nameInDb = "dian_liu")
    private int dianLiu;

    // 温度
    @Property(nameInDb = "temperature")
    private int temperature;

    // 烟雾
    @Property(nameInDb = "smoke")
    private int smoke;

    // 充电 or 不充电
    @Property(nameInDb = "charging")
    private int charging;

    @Property(nameInDb = "lighting")
    private int lighting;

    @Property(nameInDb = "is_available")
    private int isAvailable;

    // 在线状态:0=掉线,1=在线,2=异常
    @Property(nameInDb = "item_state")
    private int itemState;

    @Property(nameInDb = "except_info")
    private String exceptInfo;

    @Property(nameInDb = "update_time")
    private Date updateTime;

    @Property(nameInDb = "data_info")
    private String dataInfo;

@Generated(hash = 864667649)
public Charging(Long id, String itemCode, String infoCode, int itemFlag,
        String doorStatus, int batteryStatus, int dianYa, int dianLiang,
        int dianLiu, int temperature, int smoke, int charging, int lighting,
        int isAvailable, int itemState, String exceptInfo, Date updateTime,
        String dataInfo) {
    this.id = id;
    this.itemCode = itemCode;
    this.infoCode = infoCode;
    this.itemFlag = itemFlag;
    this.doorStatus = doorStatus;
    this.batteryStatus = batteryStatus;
    this.dianYa = dianYa;
    this.dianLiang = dianLiang;
    this.dianLiu = dianLiu;
    this.temperature = temperature;
    this.smoke = smoke;
    this.charging = charging;
    this.lighting = lighting;
    this.isAvailable = isAvailable;
    this.itemState = itemState;
    this.exceptInfo = exceptInfo;
    this.updateTime = updateTime;
    this.dataInfo = dataInfo;
}

@Generated(hash = 184035014)
public Charging() {
}

public Long getId() {
    return this.id;
}

public void setId(Long id) {
    this.id = id;
}

public String getItemCode() {
    return this.itemCode;
}

public void setItemCode(String itemCode) {
    this.itemCode = itemCode;
}

public String getInfoCode() {
    return this.infoCode;
}

public void setInfoCode(String infoCode) {
    this.infoCode = infoCode;
}

public int getItemFlag() {
    return this.itemFlag;
}

public void setItemFlag(int itemFlag) {
    this.itemFlag = itemFlag;
}

public String getDoorStatus() {
    return this.doorStatus;
}

public void setDoorStatus(String doorStatus) {
    this.doorStatus = doorStatus;
}

public int getBatteryStatus() {
    return this.batteryStatus;
}

public void setBatteryStatus(int batteryStatus) {
    this.batteryStatus = batteryStatus;
}

public int getDianYa() {
    return this.dianYa;
}

public void setDianYa(int dianYa) {
    this.dianYa = dianYa;
}

public int getDianLiang() {
    return this.dianLiang;
}

public void setDianLiang(int dianLiang) {
    this.dianLiang = dianLiang;
}

public int getDianLiu() {
    return this.dianLiu;
}

public void setDianLiu(int dianLiu) {
    this.dianLiu = dianLiu;
}

public int getTemperature() {
    return this.temperature;
}

public void setTemperature(int temperature) {
    this.temperature = temperature;
}

public int getSmoke() {
    return this.smoke;
}

public void setSmoke(int smoke) {
    this.smoke = smoke;
}

public int getCharging() {
    return this.charging;
}

public void setCharging(int charging) {
    this.charging = charging;
}

public int getLighting() {
    return this.lighting;
}

public void setLighting(int lighting) {
    this.lighting = lighting;
}

public int getIsAvailable() {
    return this.isAvailable;
}

public void setIsAvailable(int isAvailable) {
    this.isAvailable = isAvailable;
}

public int getItemState() {
    return this.itemState;
}

public void setItemState(int itemState) {
    this.itemState = itemState;
}

public String getExceptInfo() {
    return this.exceptInfo;
}

public void setExceptInfo(String exceptInfo) {
    this.exceptInfo = exceptInfo;
}

public Date getUpdateTime() {
    return this.updateTime;
}

public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
}

public String getDataInfo() {
    return this.dataInfo;
}

public void setDataInfo(String dataInfo) {
    this.dataInfo = dataInfo;
}

}
